apply the QCG